<h2>Search</h2>
<?php echo $this->searchKeywordForm; ?>
<h2>Search result</h2>
<?= count($this->result); ?> found(s)

<?php if (count($this->result)) :?>
	<?php $x = 1; ?>
		<?php foreach ($this->result as $val) :?>
		<div id="search">
		<?php echo $x; ?> 
		<a href="<?= $this->url(array('id' => $val->RecordID), 'catalog-display')?>">
		<?= $val->Title ?> (<?=$val->Year ?>)
		</a>
		<br />
		<strong>
		Score: 
		<?php printf('%1.4f', $val->score); ?>
		Grade: 
		<?= $val->Grade ?> |
		Country: 
		<?= $val->Country ?> |
		Sale price: 
		$<?php echo sprintf('%0.2f', $val->SalePriceMin); ?>
		 to $<?php echo sprintf('%0.2f', $val->SalePriceMin); ?>
		</strong>
		</div>
		<?php $x++; ?>
		<?php endforeach; ?>
<?php endif; ?>
<hr />
<div id="addItem">
<a href="<?= $this->url(array('module' => 'catalog', 'controller' => 'item', 'action' => 'create'), 
		null, true) ?>">ADD ITEM</a></div>